﻿using Abp.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpDemo.Entity
{
    [Table("Student")]

    public class Student : Entity<int>
    {
        /// <summary>
        /// 表 id
        /// </summary>
        public override int Id { get; set; }
        /// <summary>
        /// 学号
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Code { get; set; }
        /// <summary>
        /// 学生姓名
        /// </summary>
        [Required]
        [StringLength(128)]
        public string Name { get; set; }
        /// <summary>
        /// 构造函数
        /// </summary>
        public Student() { }
    }
}
